<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>vue 初探</title>
</head>
<body>
	<!-- 模板 -->
	<div id="demo" @click="clickHandle">{{message}}</div>
	<script src="../2.1.8/vue.js"></script>
	<script>
		// 以 $ 开头的为内置属性，如：$data,$el等
		let obj = {
			message : 'hello world!'
		};
		let VM = new Vue({
			el:'#demo',
			data : obj,
			methods:{
				clickHandle(){
					this.message = '我被点击了！';
				}
			}
		});
	</script>
</body>
</html>